package hy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyCtr {
    @Autowired
    Environment e;
    @GetMapping("/abc")
    public String m1(){
        System.out.println(e.getProperty("pe.birth"));
        return "success!";
    }
}
